<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <aaa></aaa>
    </div>
<!--    <template id="ss">
        <h1>定义vue组件</h1>
    </template>-->
    <script type="text/template" id="ss">
        <h1>定义vue组件</h1>
    </script>

</body>
    <script type="text/javascript">
        Vue.component("aaa",{template:"#ss"})
        new Vue({
            el:"#app",
            data:{

            }
        })
    </script>
</html>
<script>export default {
    components: {}
}
</script>